home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / info-service / gopher / Unix / gopher1.12 / misc / Radio / radio / gopher.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-08-14  |  1.2 KB  |  63 lines

  1. /*** All our mongo include files ***/
  2.  
  3. #include <stdio.h>
  4.  
  5. #ifndef IS_BSD
  6. #include <stdlib.h>
  7. #endif
  8.  
  9. #include <sys/types.h>
  10. #include <sys/socket.h>
  11. #include <netinet/in.h>
  12.  
  13. #ifndef IS_A_HPUX
  14. #include <arpa/inet.h>
  15. #endif
  16.  
  17. #include <netdb.h>
  18. #include <signal.h>
  19. #include <curses.h>
  20. #include <string.h>
  21.  
  22. #ifndef IS_A_HPUX
  23. #include <strings.h>
  24. #endif
  25.  
  26. #include <ctype.h>
  27.  
  28. #define MAXSTR 128
  29.  
  30. #define A_FILE      '0'
  31. #define A_DIRECTORY '1'
  32. #define A_CSO       '2'
  33. #define A_ERROR     '3'
  34. #define A_BINHEX    '4'
  35. #define A_TELNET    '5'
  36. #define A_TECHMAIL  '6'
  37. #define A_INDEX     '7'
  38. #define A_EOI        '.'
  39.  
  40. #define X_PREVIOUS   0
  41. #define    X_SAVEFILE  -1
  42. #define X_ABORT     -2
  43. #define X_HELP      -3
  44. #define X_OPTIONS   -4
  45. /** Our Gopher Data Type **/
  46.  
  47. struct g_struct
  48. {
  49.      char    sFileType;       /* The type of thing it is */
  50.      char    sTitle[MAXSTR]; /* User-displayed title of object       */
  51.      char    sPath[MAXSTR];  /* Internal pathname to object on host */
  52.      char    sHost[MAXSTR];  /* Internet name of host                */
  53.      int     iPort;          /* Port number on host */
  54. };
  55.  
  56. typedef struct g_struct GopherThing;
  57.  
  58.  
  59. /** Get the configuration variables **/
  60.  
  61. #include "conf.h"
  62. #include "globals.h"
  63.